<include file="public:header"/>
<div class="container">

    <div class="row user-header mb10">
        <div class="col-xs-12 tc mb5">
            <a class="avatar" href="{:U(MODULE_NAME.'/profile')}">
                <img data-original="{:U('assets/avatar',['id'=>$user['id']])}">
            </a>
            {/*<a href="#" class="msg"></a>*/}
        </div>
        <div class="col-xs-12 tc mb5">
            {$user.username}<span class="fs-12">({$user.level.title|default="初入江湖"})</span><br>
            <span class="fs-12 " style="color: #ff4777">分享商城任意页面,邀请好友获取收益</span>
                <if condition="$invite_user">邀请人:<span class="pink">{:safe_tele($invite_user['username'])}</span></if>
        </div>
        <div class="col-xs-6 tr fs-12">
            
        </div>
    </div>

    <div class="row user-order bgwhite mb10">
        <a class="col-xs-12 title" href="{:U(MODULE_NAME.'/order')}">
            <span class="fs-16">全部订单</span>
            <span class="fs-14 grey fr">＞</span>
        </a>
        <a href="{:U(MODULE_NAME.'/order',['status'=>1,'lottery'=>0])}" class="col-xs-2 item">
            <p><i class="pay"></i></p>
            <p>待升级</p>
        </a>
		<a href="{:U(MODULE_NAME.'/order',['status'=>1,'lottery'=>1])}" class="col-xs-2 item">
            <p><i class="wait"></i></p>
            <p>升级中</p>
        </a>
        <a href="{:U(MODULE_NAME.'/order',['status'=>2])}" class="col-xs-2 item">
            <p><i class="take"></i></p>
            <p>待提货</p>
        </a>
        <a href="{:U(MODULE_NAME.'/order',['status'=>3])}" class="col-xs-2 item">
            <p><i class="comment"></i></p>
            <p>提货中</p>
        </a>
        <a href="{:U(MODULE_NAME.'/order',['status'=>5])}" class="col-xs-2 item">
            <p><i class="barter"></i></p>
            <p>已完成</p>
        </a>
    </div>

    <!-- <div class="row user-extend bgwhite mb10">
        <div class="col-xs-12 title">
            <span class="fs-16">我的推广</span>
            <if condition="$user['invite_p1']">
                <span class="fs-12 grey">你由［{$user.invite_p1}］推荐</span>
            </if>
            <a href="{:U(MODULE_NAME.'/invite_qrcode')}" class="fs-14 grey fr">推广二维码 ＞</a>
        </div>
        <a class="col-xs-4 item br" href="{:U(MODULE_NAME.'/score_list')}">
            <p><span class="grey"><i class="score"></i>可用积分</span></p>
            <p class="txt">{$user.score}</p>
        </a>
        <a class="col-xs-4 item br" href="{:U(MODULE_NAME.'/fans_list')}">
            <p><span class="grey"><i class="friend"></i>粉丝</span></p>
            <p class="txt">{$user.fans}人</p>
        </a>
        <div class="col-xs-4 item">
            <p><span class="grey"><i class="list"></i>明细</span></p>
            <p>
                <a href="{:U(MODULE_NAME.'/score_apply')}" class="btn">兑换</a>
                <a href="{:U(MODULE_NAME.'/score_grant')}" class="btn">转赠</a>
            </p>
        </div>
    </div> -->
</div>

<div class="container simple-list">
    <div class="row bgwhite">
		<if condition="$user.tgroup eq 3">
		<a href="{:U(MODULE_NAME.'/erweima')}" class="col-xs-12 title pl10 pr10">
            <span>我的邀请码</span>
            <span class="arrow"></span>
        </a>
		</if>
		<a href="{:U(MODULE_NAME.'/commission')}" class="col-xs-12 title pl10 pr10">
            <span>收益明细</span>
            <span class="arrow"></span>
        </a>
		<if condition="$user.topclass eq 1">
		<a href="{:U(MODULE_NAME.'/lower')}" class="col-xs-12 title pl10 pr10">
            <span>团队明细</span>
            <span class="arrow"></span>
        </a>
		</if>
		<a href="{:U(MODULE_NAME.'/wallet')}" class="col-xs-12 title pl10 pr10">
            <span>我的钱包</span>
            <span class="arrow"></span>
			<span class="fr fs-12 red">￥{$user.price}&nbsp;&nbsp;&nbsp;</span>
        </a>

        <a href="{:U(MODULE_NAME.'/favs')}" class="col-xs-12 title pl10 pr10">
            <span>我的收藏</span>
            <span class="arrow"></span>
        </a>
        <!-- <a href="{:U(MODULE_NAME.'/comment_list')}" class="col-xs-12 title pl10 pr10">
            <span>我的评论</span>
            <span class="arrow"></span>
        </a> -->
        <a href="{:U(MODULE_NAME.'/address')}" class="col-xs-12 title pl10 pr10">
            <span>我的地址</span>
            <span class="arrow"></span>
        </a>
        <a href="{:U(MODULE_NAME.'/other_settings')}" class="col-xs-12 title pl10 pr10">
            <span>其他设置</span>
            <span class="arrow"></span>
        </a>
		<a href="{:U(MODULE_NAME.'/explain')}" class="col-xs-12 title pl10 pr10">
            <span>玩法说明</span>
            <span class="arrow"></span>
        </a>
		<!--<a href="tel://{:C('ins_service_tele')}" class="col-xs-12 title pl10 pr10">-->
            <!--<span>联系客服&nbsp;&nbsp;<em style="color:#6699ff;font-size:12px;font-style:normal;">010-5940-4973</em></span>-->
            <!--<span class="arrow"></span>-->
			<!--<span class="fr fs-12">(早9:00~晚18:00)&nbsp;&nbsp;&nbsp;</span>-->
        <!--</a>-->
    </div>
</div>
<div class="container">
    <div class="row mt20">
        <div class="col-xs-2"></div>
        <a href="{:U('passport/logout')}" class="logout-btn col-xs-8">退出登录</a>
        <div class="col-xs-2"></div>
    </div>
</div>
<include file="public:footer"/>